import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store(
  {
    state: {
      fiterlist: [1, 2, 3, 4, 5, 6, 7, 8, 9]
    },
    // 1.添加getters配置项
    getters: {
      fiterlist (state) {
        return state.fiterlist.filter(item => item > 5)
      }
    }

  }
)

export default store
